<template>
  <div>
    {{name}}----{{age}}
    <button @click="sendStudentName">传递学生名给School</button>
  </div>
</template>

<script>
export default {
  name:"Student",
  data() {
    return {
      name:'lisi',
      age:18
    }
  },
  methods: {
    sendStudentName() {
      this.$bus.$emit('hello',666)
    }
  },
}
</script>
